﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Avarton_Scanner
{
    /// <summary>
    /// Interaction logic for About.xaml
    /// </summary>
    public partial class About : Window
    {
        public About()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //set application title
            lblApplicationName.Content = "About us";
        }

        private void Grid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            try
            {
                DragMove();
            }
            catch (Exception)
            {
                //do nothing
            }
        }

        private void btnClose_MouseDown(object sender, MouseButtonEventArgs e)
        {
            WindowCollection screens = Application.Current.Windows;
            foreach (Window x in screens)
            {
                if (x.Title.ToString().Equals("About us"))
                {
                    x.Close();
                }
            }
        }
    }
}
